import java.awt.*;

import replay.SerialPlayField;

import com.golden.gamedev.*;
import com.golden.gamedev.object.*;
import com.golden.gamedev.object.background.*;



public class Level1 extends AbstractLevel{
	public Level1(GameEngine engine, boolean isResume) {
		super(engine, isResume);
		ID = 1;
	}

	@Override
	public void initLevel() {
		background = new ColorBackground(Color.GREEN, 660, 500);
		currentPlayField = new PlayField(background);
		obstacles = currentPlayField.addGroup(new SpriteGroup("obstacles"));
		enemy = currentPlayField.addGroup(new SpriteGroup("enemies"));
		obstacles.add(new Sprite(getImage("images/obsatcle.png"),300,80));
		obstacles.setBackground(background);
		
		enemy.add(new Sprite(getImage("images/bucket.png"),480, 17));
		enemy.getActiveSprite().setLocation(480,17);
		enemy.getActiveSprite().setMovement(0.1,getRandom(-360,360));
		enemy.setBackground(background);
		
	}
}